// noise detection
#include "stdio.h"
#include "cim144.h"
//#include "encoding.h"
#include "util.h"

#define N 256
//#define N 16
union Mac_data{
    uint8_t  d8[32] ;
    uint64_t d64[4] ;
}mac_in;

union Noise_Weight
{
    uint8_t d8[25];
    uint64_t d64[3];
}noise_weight={0,1,1,1,0, 1,3,4,3,1, 1,4,7,4,1, 1,3,4,3,1, 0,1,1,1,0};

union Tmp_out
{
    uint8_t d8[8];
    int64_t d64;
}tmp_out;

uint8_t img[3][N][N] ={2,1,1,1,1,0,2,0,2,1,0,0,2,1,1,1,0,1,2,0,1,1,0,0,0,0,1,1,0,1,1,1,0,2,1,1,1,0,1,0,0,0,0,1,0,0,0,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,1,0,1,0,1,0,1,0,1,0,0,1,0,0,0,1,0,0,0,1,1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,1,0,1,0,0,0,0,0,0,0,1,0,1,0,0,1,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,1,2,0,1,1,1,2,1,0,2,0,1,1,2,1,2,1,2,2,0,1,1,1,1,2,2,0,1,2,0,0,1,0,1,0,0,1,0,0,0,0,0,2,1,0,1,0,0,2,1,1,0,1,1,1,2,0,1,2,1,1,0,0,1,1,2,1,2,2,0,2,1,2,0,0,0,1,2,1,1,0,0,1,1,0,1,1,0,0,2,1,1,1,1,0,0,0,0,2,1,1,0,1,2,0,0,0,0,1,0,2,0,0,1,0,1,0,0,0,0,1,0,0,1,1,0,0,0,1,1,0,0,0,0,0,1,0,0,1,1,0,1,0,1,0,0,0,0,1,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0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,2,1,2,2,2,2,2,1,2,2,2,1,2,2,2,2,1,1,1,1,2,2,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,0,2,2,2,2,1,1,1,2,2,2,1,2,1,2,1,2,1,2,0,2,2,1,1,1,2,1,1,2,1,2,1,2,2,2,2,2,1,2,2,2,2,2,2,2,1,1,2,2,1,1,0,1,1,1,2,2,1,1,2,2,2,2,2,1,2,1,2,1,2,2,1,2,2,2,1,2,1,2,2,2,1,2,1,1,2,1,2,1,1,2,1,2,2,0,2,1,2,1,2,2,2,2,\
//                        2,1,1,1,2,1,2,1,2,1,0,1,2,1,2,2,2,2,1,2,1,2,0,0,1,1,2,2,1,1,0,1,2,2,1,1,2,2,2,2,1,2,0,2,1,2,1,1,2,2,2,2,1,0,2,2,1,2,1,1,1,1,1,2,2,2,2,2,1,2,1,2,2,1,2,2,0,1,1,2,2,2,1,2,2,2,1,2,1,2,2,2,2,1,1,2,2,2,1,1,2,2,2,1,1,2,1,1,0,1,2,1,2,1,2,2,2,1,2,2,2,2,2,1,2,2,2,1,2,2,2,2,1,2,1,1,2,2,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,0,2,2,2,2,1,1,1,2,2,2,1,2,1,2,1,2,1,2,0,2,2,1,2,1,2,1,1,2,1,2,1,2,2,2,2,2,1,2,2,2,2,2,2,2,1,1,2,2,1,1,0,1,1,1,2,2,2,2,2,2,2,2,2,1,2,1,2,1,2,2,1,2,2,2,1,2,1,2,2,2,1,2,1,1,2,1,2,1,1,2,1,2,2,0,2,1,2,1,2,2,2,2};
int8_t  img_out [3][N][N] = {0};

int main(void){
    //int8_t zeros[576]={0};
    uint64_t push_rs2 , save_rs2,mvm_rs2,mvm_rs1 ,config;
    uint16_t push_start,push_num,save_start,save_num;
    uint16_t mvm_row_start,mvm_row_num,mvm_col_start,mvm_col_num,mvm_array_index;
    uint8_t  random,wise_num,out_shift,cim_shift;
    //int8_t  tmp_out ;
    int pad = 2;
    size_t cycles;
    cycles = -read_csr(cycle);
    //int8_t noise_weight[25] =  {0,1,1,1,0, 1,3,4,3,1, 1,4,7,4,1, 1,3,4,3,1, 0,1,1,1,0};

//##################################1. cim144  #######################################
//                                ######         ######
//                               ########       ########
//                                ######         ######
//                                 ###            ###
//                                  #              #
//####################################################################################

    // 112,[1,1,1,1,-8,1,1,1,1]  
    // 113,[-1,-1,-1,0,0,0,1,1,1]
    // 114,[-1,0,1,-1,0,1,-1,0,1]
    // 120,[0,1,1,1,0, 1,3,4,3,1, 1,4,7,4,1, 1,3,4,3,1, 0,1,1,1,0]
    push_start      = 0     ;
    push_num        = 32    ;
    save_start      = 120   ;
    save_num        = 8     ;
    mvm_array_index = 0     ;
    mvm_row_start   = 0     ;
    mvm_row_num     = 25    ;
    mvm_col_start   = 120   ;
    mvm_col_num     = 1     ;
    random          = 0     ;
    wise_num        = 2     ;
    out_shift       = 0     ;
    cim_shift       = 0     ;

    push_rs2 = push_start       << 11 | push_num;          //reg: row start, num
    save_rs2 = save_start       << 11 | save_num ;         //reg: col start, num
    //mvm: array_index,row_start, col_start
    mvm_rs2  = mvm_array_index  << 22 | mvm_row_start << 11 | mvm_col_start; 
    mvm_rs1  = mvm_row_num      << 16 | mvm_col_num;       //mvm: row_num,   col_num
    //conf: random, wise_num, out_shift, cim_shift
    config   =  random          << 23 | wise_num << 16 | out_shift<<8 | cim_shift;   
    ROCC_config(config);
 
    // *************1.1 img2col mvm ********************************
    for(int k = 0;k< 3 ; k++){
        for(int i = 0 -pad; i< N - pad ;i++){
            for(int j =0 -pad;j<N - pad ; j++){
                //img2col
                for(int t1 = 0;t1<5;t1++){
                    for(int t2=0;t2<5;t2++){
                        if((i+t1)>= 0 && (i+t1)<N && (j+t2)>=0 && (j+t2)<N){
                            mac_in.d8[t1*5+t2] = img[k][i+t1][j+t2];
                        }else{
                            mac_in.d8[t1*5+t2] = 0;
                        }
                    }
                }
                ROCC_push((int64_t)mac_in.d64 ,push_rs2);
                ROCC_mvm(mvm_rs1,mvm_rs2);
                ROCC_save((int64_t)(&tmp_out.d64),save_rs2);
                img_out[k][i+pad][j+pad] = tmp_out.d8[0];
                // printf("%d ",tmp_out.d8[0]);
            }
            // printf("\n");
        }    
        // printf("\n");
    }
    cycles += read_csr(cycle);
    printf("cycles: %d \n",cycles);
    cycles = -read_csr(cycle);
//##################################2. cpu  #######################################
//                                ######         ######
//                               ########       ########
//                                ######         ######
//                                 ###            ###
//                                  #              #
//###################################################################################

    printf("%d \n",img_out[0][0][0]);
    for(int k = 0;k< 3 ; k++){
        for(int i = 0 -pad; i< N - pad ;i++){
            for(int j =0 -pad;j<N - pad ; j++){
                //img2col
                for(int t1 = 0;t1<5;t1++){
                    for(int t2=0;t2<5;t2++){
                        if((i+t1)>= 0 && (i+t1)<N && (j+t2)>=0 && (j+t2)<N){
                            mac_in.d8[t1*5+t2] = img[k][i+t1][j+t2];
                        }else{
                            mac_in.d8[t1*5+t2] = 0;
                        }
                    }
                }
                tmp_out.d8[0] = 0;
                for(int t3 = 0 ;t3<25;t3++){
                    tmp_out.d8[0] += mac_in.d8[t3] * noise_weight.d8[t3];
                }
                //printf("%d %d %d \n",k,i+pad,j+pad);
                img_out[k][i+pad][j+pad] = tmp_out.d8[0];
                // printf("%d ",tmp_out.d8[0]);
                //printf("%d %d %d %4d %4d \n",k,i+pad,j+pad,tmp_out.d8[0],img_out[k][i+pad][j+pad]);
                // if(i == 2){
                //     for(int k = 0 ;k<9;k++){
                //         printf("%4d ",cnn1_in[k]);
                //     }
                //     printf("\t%d \n",tmp_out.d8[0]);    
                // }
            }
            // printf("\n");
        }
        // printf("\n");    
    }
    cycles += read_csr(cycle);
    printf("cycles: %d \n",cycles);
    cycles = -read_csr(cycle);
    
//##################################3. RoCC  #######################################
//                                ######         ######
//                               ########       ########
//                                ######         ######
//                                 ###            ###
//                                  #              #
//###################################################################################

    int64_t mac_rd          = 0;
    for(int k = 0;k< 3 ; k++){
        for(int i = 0 -pad; i< N - pad ;i++){
            for(int j =0 -pad;j<N - pad ; j++){
                //img2col
                for(int t1 = 0;t1<5;t1++){
                    for(int t2=0;t2<5;t2++){
                        if((i+t1)>= 0 && (i+t1)<N && (j+t2)>=0 && (j+t2)<N){
                            mac_in.d8[t1*5+t2] = img[k][i+t1][j+t2];
                        }else{
                            mac_in.d8[t1*5+t2] = 0;
                        }
                    }
                }
                tmp_out.d8[0] = 0;
                RoCC_mac(mac_rd,mac_in.d64[0],noise_weight.d64[0]);
                tmp_out.d8[0] += mac_rd;
                RoCC_mac(mac_rd,mac_in.d64[1],noise_weight.d64[1]);
                tmp_out.d8[0] += mac_rd;
                RoCC_mac(mac_rd,mac_in.d64[2],noise_weight.d64[2]);
                tmp_out.d8[0] += mac_rd;
                img_out[k][i+pad][j+pad] = tmp_out.d8[0] + noise_weight.d8[24]*mac_in.d8[24];
                // printf("%d ",img_out[k][i+pad][j+pad]);
            }
            // printf("\n");
        }    
        // printf("\n");
    }
    cycles += read_csr(cycle);
    printf("cycles: %d \n",cycles);
    cycles = -read_csr(cycle);
//################################ display result ###########################################
    // for(int k = 0; k< 3 ; k++){
    //     for(int i = 0 ; i< 10 ;i++){
    //         for(int j =0 ;j< 10 ; j++){
    //             printf("%d ",img_out[k][i][j]);
    //         }
    //         printf("\n");
    //     }
    //     printf("\n");
    // }
    printf("\nfinish\n");
    return 0;    
}
